package com.anxuan.demo.test;

import com.anxuan.demo.model.Iklass;
import com.anxuan.demo.model.Klass;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class aopTest2 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("springAop.xml");
        Iklass klass = (Iklass)ctx.getBean("klass");
        System.out.println(klass.getClass());
        klass.ding();
    }
}
